package cn.tedu.restaurant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.org.apache.xpath.internal.operations.Or;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author JachinLin
 * @since 2020-10-05
 */
@Data @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) @TableName("t_order") public class Order
    implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订餐id
     */
    @TableId(value = "oid", type = IdType.AUTO) private Integer oid;

    /**
     * 用户电话
     */
    private Integer uid;

    /**
     * 预定时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date
        orderTime;

    /**
     * 预定人数
     */
    private Integer orderNum;

    /**
     * 预定座位
     */
    private Integer orderSeat;

    /**
     * 订餐人电话
     */
    private String orderPhone;

    /**
     * 订餐人姓名
     */
    private String orderName;

    /**
     * 创建执行人
     */
    private String createdUser;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 修改执行人
     */
    private String modifiedUser;

    /**
     * 修改时间
     */
    private Date modifiedTime;

    private Integer id;
    private String remark;

}
